package day02;

public class DoubleDemo {
    public static void main(String[] args) {
        //双精度浮点数：double 8个字节
        double a = 3.14;
        float b = 3.14f;

        double c = 3.0, d = 2.8;
        System.out.println(c-d); //0.20000000000000018 数据不精确，有误差
        double e = 8.0 - 2.8; //8.0-2.8=5.2
        System.out.println(e);
    }
}
